package com.example.jw_web.Servlet;


import com.example.jw_web.Mapper.LonginDao;
import com.example.jw_web.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class LoginServlet {

     @Autowired LonginDao longinDao;
     public User judgeLongin(String username , String password)
     {
          User user=longinDao.selectUser(username ,password);
               return user;

     }


}
